package com.lzw.breezeNovel.webApp.controller.video;


import com.lzw.breezeNovel.common.result.Result;
import com.lzw.breezeNovel.webApp.service.video.AnimeEpisodeService;
import com.lzw.breezeNovel.webApp.vo.video.AnimeEpisodeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.webApp.controller.video
 * @date 2025/3/20
 * @description 动漫的集
 */
@RestController
@RequestMapping("/app/animeEpisode")
@SuppressWarnings("all")
public class AnimeEpisodeController {

    /**
     * 注入service
     */
    @Autowired
    private AnimeEpisodeService animeEpisodeService;

    /**
     * 根据动漫id查询集
     */
    @RequestMapping("/getAnimeEpisodeByAnimeId")
    public Result<List<AnimeEpisodeVo>> getAnimeEpisodeByAnimeId(@RequestParam Long animeId) {
        List<AnimeEpisodeVo> animeEpisodeVoList = animeEpisodeService.getAnimeEpisodeByAnimeId(animeId);
        return Result.ok(animeEpisodeVoList);
    }

}
